package com.yan.service.serviceImpl;

import com.yan.dao.LoginMapper;
import com.yan.service.LoginService;

public class LoginServiceImpl implements LoginService {

    private LoginMapper loginMapper;

    public void setLoginDao(LoginMapper loginMapper) {
        this.loginMapper = loginMapper;
    }

    @Override
    public Integer adminLogin(String username, String password) {
        return loginMapper.adminLogin(username, password);
    }

    @Override
    public Integer teacherLogin(String name, String password) {
        return loginMapper.teacherLogin(name, password);
    }

    @Override
    public Integer studentLogin(int studentId, String password) {
        return loginMapper.studentLogin(studentId, password);
    }

}
